import requests

rul = 'https://www.baidu.com/'
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36'
}

data = {
    'data': 'data'
}
# url param header
respone = requests.get(url=rul, params=data, headers=headers)
respone.encoding = 'uft-8'
print(respone.content)
